package com.itheima.mapper;

import com.itheima.entity.ShowInfo;
import com.itheima.entity.YddCate;
import com.itheima.entity.YddEssay;
import com.itheima.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface HomeMapper {

    @Select("select * from ydd_cate")
    List<YddCate> getAllCate();

    List<LinkVO> getAllLink();

    List<BannerVO> getAllBannerList();

    List<YddEssay> list();

    List<HotEssayVO> getAllHotEssayList();

    List<HotEssayVO> getAllTopEssayList();

    ShowVO getShowVO(Integer id);

    ShowInfo getShowInfoVO(Integer id);

    List<recommendVO> getRecommendVO(Integer id);

    List<YddEssay> getList(Integer cateid);
}
